Constants
Pascal C/C++
wconst
w size = 100;
w pi = 3.14159;
w first = ‘A’;
w filename = ‘A.DAT’;
w#define size 100
w#define pi 3.14159
w#define first ‘A’
w#define filename “A.DAT”
wANSI C and C++ only
wconst int size=100;
wconst float pi=3.14159;
wconst char first = ‘A’;
wconst char filename[]=“A.DAT”;
In C (but not C++), an integer constant declared this way may NOT be used to specify the size of an array in most cases.